<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://doc.hyperf.io
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */

namespace Shen\Rocketmq5;

use Shen\Rocketmq5\Aspect\ConsumerAspect;
use function Hyperf\Support\env;

class ConfigProvider
{
    public function __invoke(): array
    {
        return [
            'aspects' => [
                ConsumerAspect::class,
            ],
            'dependencies' => [
            ],
            'commands' => [
            ],
            'annotations' => [
                'scan' => [
                    'paths' => [
                        __DIR__,
                    ],
                ],
            ],
            'publish' => [
                [
                    'id' => 'config',
                    'description' => 'The config for gotask.',
                    'source' => __DIR__ . '/../publish/gotask.php',
                    'destination' => BASE_PATH . '/config/autoload/gotask.php',
                ],
//                [
//                    'id' => 'exe',
//                    'description' => 'remove golang file to bin.',
//                    'source' => __DIR__ . '/../bin/rocketmq5',
//                    'destination' => BASE_PATH . '/bin/rocketmq5',
//                ],
                [
                    'id' => 'yml',
                    'description' => 'remove golang file to bin.',
                    'source' => __DIR__ . '/../publish/config.yml',
                    'destination' => BASE_PATH . '/config.yml',
                ],
            ],
        ];
    }
}
